﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Simple.aspx.cs" Inherits="Simple" %>

<%@ Register assembly="Cwing.UI.Validation" namespace="Cwing.UI.Controls" tagprefix="cwvf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    Description:<br />
    <br />
    SETP1<br />
    The page need to inherit Cwing.UI.Controls.ValidationPage<br />
    <br />
    STEP2<br />
    Use ValidationTextBox<br />
    <br />
    STEP3<br />
    Configure each ValidationTextBox<br />
    <br />
    Error Message:<cwvf:ErrorList ID="ErrorList1" runat="server">
    </cwvf:ErrorList>
    <br />
    <br />
    Email:<cwvf:ValidationTextBox ID="ValidationTextBox1" runat="server" 
        Path="//Control[@ID='Email']" ValidationSummary="ErrorList1"></cwvf:ValidationTextBox><br />
    <br />
    Address:<cwvf:ValidationTextBox ID="ValidationTextBox2" runat="server" 
        Path="//Control[@ID='Address']" ValidationSummary="ErrorList1"></cwvf:ValidationTextBox><br />
    <br />
    Number:<cwvf:ValidationTextBox ID="ValidationTextBox3" runat="server" 
        Path="//Control[@ID='Number']" ValidationSummary="ErrorList1"></cwvf:ValidationTextBox><br />
    <br />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
        Text="Validate" />
    <p>
        Validation Result:</p>
    <p>
        <asp:Literal ID="ltlValidationResult" runat="server"></asp:Literal>
    </p>
    </form>
</body>
</html>
